package com.wlyuan.index.domain.index.repository.old;


import com.wlyuan.core.domain.valueobj.OrderId;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @author yuanjie
 */
public interface OrderIndexOldRepository extends ElasticsearchRepository<OrderIndexOld, Long> {
    default OrderIndexOld ofId(OrderId orderId) {
        return this.findById(orderId.getId()).orElse(null);
    }
}
